<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>静态表格</title>
    <link rel="stylesheet" href="../layui/css/layui.css">
</head>
<body>
    <script src="../layui/layui.js"></script>

    <div class="layui-container">
        <div class="layui-row">
            <div class="layui-col-lg6">
                <!-- table就是表格了 -->
                <table class="layui-table">
                    <!-- 定义每一列的配置 最后一个col没设置宽度 表示自动补齐 -->
                    <colgroup>
                        <col width="150">
                        <col width="150">
                        <col>
                    </colgroup>
                    <!-- 表头名称 -->
                    <thead>
                        <tr>
                            <th>人物</th>
                            <th>民族</th>
                            <th>格言</th>
                        </tr>
                    </thead>
                    <!-- 表内容 -->
                    <tbody>
                        <!--tr为一行 td为每一列 -->
                        <tr>
                            <td>孔子</td>
                            <td>华夏</td>
                            <td>有朋自远方来，不亦乐乎</td>
                        </tr>
                        <tr>
                            <td>孟子</td>
                            <td>华夏</td>
                            <td>穷则独善其身，达则兼济天下</td>
                        </tr>
                        <tr>
                            <td>老子</td>
                            <td>华夏</td>
                            <td>穷则独善其身，达则兼济天下</td>
                        </tr>
                    </tbody>
                </table>
            </div>
            <div class="layui-col-lg6">
                <table class="layui-table" lay-even>
                    <colgroup>
                        <col width="150">
                        <col width="150">
                        <col>
                    </colgroup>
                    <thead>
                    <tr>
                        <th>人物</th>
                        <th>民族</th>
                        <th>格言</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr>
                        <td>孔子</td>
                        <td>华夏</td>
                        <td>有朋自远方来，不亦乐乎</td>
                    </tr>
                    <tr>
                        <td>孟子</td>
                        <td>华夏</td>
                        <td>穷则独善其身，达则兼济天下</td>
                    </tr>
                    <tr>
                        <td>庄子</td>
                        <td>华夏</td>
                        <td>朴素而天下莫能与之争美</td>
                    </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>

</body>
</html>